home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / mweb / MWEB Utils / ws295sdk.exe / Ws2sdkzp.exe / SAMPLES / WS2CHAT / MAKEFILE < prev    next >
Encoding:
Text File  |  1997-06-06  |  648 b   |  27 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. APPVER=4.0
  4.  
  5. !include <win32.mak>
  6.  
  7. objs=ws2chat.obj chatdlg.obj chatsock.obj queue.obj
  8. chatcflags=$(cflags) -DCALLBACK_NOTIFICATION
  9.  
  10. all: ws2chat.exe
  11.  
  12. # Update the resource if necessary
  13.  
  14. ws2chat.res: ws2chat.rc ws2chat.h
  15.     $(rc) $(rcflags) $(rcvars) ws2chat.rc
  16.  
  17. # Update the object file if necessary
  18.  
  19. .c.obj:
  20.     $(cc) $(cdebug) $(chatcflags) $(cvars) $*.c
  21.  
  22. # Update the executable file if necessary, and if so, add the resource back in.
  23.  
  24. ws2chat.exe: $(objs) ws2chat.res
  25.     $(link) $(linkdebug) $(guilflags) -out:ws2chat.exe $(objs) \
  26.     ws2chat.res $(guilibs) ws2_32.lib
  27.